<?php 
/**
 * Disorder admin page. Used in admin action in DisorderController.
 *
 * @package   views
 * @subpackage disorder
 * @since     1.0
 * @filesource
 */

$this->breadcrumbs=array(
	'Disorders',
);

$this->menu=array(
	array('label'=>'Create Disorder', 'url'=>array('create')),
);
?>

<h1>Manage Disorders</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'disorder-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'name',
		'abbr',
		array(
			'name'=>'active',
			'type'=>'boolean',
			'filter'=>DataUtil::getOptionYesNo(),
		),
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update} {delete}',
			'deleteConfirmation'=>"Deleting this disorder will set disorder field null in associated patient signal records. \n Are you sure you want to delete this disorder?",
		),
	),
)); ?>
